<%@page import="com.cupdata.zxt.data.DataWrapper"%>
<%@page import="com.cupdata.zxt.data.json.*"%>

<%
	DataWrapper dw = (DataWrapper)request.getAttribute("__DataWrapper");
	String dwJSON = DataWrapper2Json.toJsonString(dw);	
%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<script type="text/javascript" src="../zxt/zxt.js"></script>
		<script>
			importZXT("../zxt");
		</script>
		<script type="text/javascript" src="./CARD2.js"></script>
	</head>
	<body>
		<table border="2">
			<tr>
				<td>帐号：</td>
				<td><div id="accountID" zxt="zxt.ui.Textbox" zxt.required="true" zxt.tip="Your AccountID" ></div></td>
				<td>姓名：</td>
				<td><div id="name" zxt="zxt.ui.Textbox" zxt.required="true"	zxt.tip="Your Name"></div></td>
			</tr>
			<tr>
				<td>性别：</td>
				<td>
					<div id="gender" zxt="zxt.ui.Choose" zxt.group="Gendergroup" zxt.default="male">
						<table>
							<tr>
								<td>男</td>
								<td><div option="male"></div></td>
								<td>女</td>
								<td><div option="female"></div></td>
							</tr>
						</table>
					</div>
				</td>
				<td>生日：</td>
				<td><div id="birthday"></div></td>
			</tr>
			<tr>
				<td>银行：</td>
				<td>
					<div id="bank" zxt="zxt.ui.Combobox" zxt.required="true" zxt.options="工商银行:工商银行,招商银行:招商银行,民生银行:民生银行" zxt.chooseonly="false"></div>
				</td>
				<td>卡类型：</td>
				<td>
					<div id="category" zxt="zxt.ui.Select" zxt.configFunc="configCategorySelect"></div>
				</td>
			</tr>
			<tr>
				<td>卡号：</td>
				<td><div id="cardID" zxt="zxt.ui.Cardidbox" zxt.required="true" zxt.tip="cardID"></div></td>
				<td>积分计划</td>
				<td>
					<div id="integra" zxt="zxt.ui.Listbox" zxt.options="太阳计划:Sun,水星计划:Mercury,金星计划:Venus,地球计划:Earth,火星计划:Mars"></div>
				</td>
			</tr>
		</table>
		<div id="Submitbtn" zxt="zxt.ui.Button" zxt.label="submit" zxt.text="提交"></div>
	</body>
</html>

<script type="text/javascript">
	var __dwJSON = <%=dwJSON%>;
	var __dw = Json2EiInfo.parseJsonObject( __dwJSON );	

	var date = new zxt.ui.Datebox();
	$("#birthday").append(date.render());
	$zxt.regComponent("birthday", date);
	
	$zxt.init();
</script>
